<div class="sort_products">
    <label><?php echo $this->translate('Sort by')?>:</label>
	<?php
		$keyword = isset($this->pageValues['keyword']) ? $this->pageValues['keyword'] : null;
		$category = isset($this->pageValues['category']) ? $this->pageValues['category'] : null;
		$form_submitted = isset($this->pageValues['form_submitted']) ? $this->pageValues['form_submitted'] : null;
		echo $this->formSelect(
			'sort',
			isset($this->pageValues['sort'])?$this->pageValues['sort']:'latest_products',
			array(
		'onchange' => 'javascript:location.href = "' . $this->pageUrl(array('sort' => NULL, 'page' => 1, 'keyword' => $keyword, 'category' => $category, 'form_submitted' => $form_submitted)) . '/sort/"+this.value;',
				'id' => 'sort_option'
			),
			array(
				'latest_products'	=> $this->translate('SORT_LATEST_PRODUCTS'),
				'price_asc'			=> $this->translate('SORT_PRICE_ASC'),
				'price_desc'		=> $this->translate('SORT_PRICE_DESC')
			)
		);
	?>    
</div>